import { initTracker, tracker } from './utils/tracker';
import { injectJsError } from "./lib/jsError";
import { injectXHR } from './lib/xhr'
import { blankScreen } from './lib/blankScreen'
import { timing } from './lib/timing' 

injectJsError()
injectXHR()
blankScreen()
timing()

export {
  initTracker,
  tracker,
}

// 测试代码
let host = 'cn-beijing.log.aliyuncs.com'
let project = 'zhimeng-h5'
let logstore = 'h5-dev'
initTracker(
  host,
  project,
  logstore,
)
tracker().login('XXXXXXX')